<!DOCTYPE HTML>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:p="http://primefaces.org/ui"
		template="/resources/template/template_bootstrap.xhtml">

		<ui:define name="title">Autenticação de usuário.</ui:define>

		<ui:define name="conteudo">

				<h:form id="frmLogin" prependId="false">

						<p:messages autoUpdate="true" globalOnly="true" closable="true" />
						<div class="row-fluid">
								<div class="span3">
										<h:outputLabel id="lblLogin" for="txtLogin" value="E-mail"
												styleClass="text-right" />
								</div>
								<div class="span3">
										<p:focus for="txtLogin"></p:focus>
										<p:inputText id="txtLogin" value="#{loginMB.email}"
												required="true" style="width:204px;"
												requiredMessage="Um e-mail deve ser informado.">
										</p:inputText>
								</div>
								<div class="span5">
										<p:message for="txtLogin" />
								</div>
						</div>
						<div class="row-fluid">
								<div class="span3">
										<h:outputLabel id="lblSenha" value="Senha"
												styleClass="text-right" />
								</div>
								<div class="span3">
										<p:password id="txtSenha" value="#{loginMB.senha}"
												required="true" style="width:200px;"
												requiredMessage="Uma senha deve ser informada." />
								</div>
								<div class="span5">
										<p:message for="txtSenha" />
								</div>
						</div>
						
						

						<div class="row-fluid">
								<div class="span3">
										<p:commandLink id="btnLogin" value="Login" ajax="false"
												styleClass="btn-virtual float-right"
												action="#{loginMB.autenticarUsuario()}" />
								</div>
								<div class="span3">
										<p:commandLink styleClass="btn-virtual"
												value="Esqueceu sua senha?" process="@this"
												action="/autenticar/recuperar-senha.jsf?faces-redirect=true" />
								</div>
								<div class="span6"></div>
						</div>

				</h:form>

		</ui:define>
</ui:composition>